<div id="elective_information" class="courses">
<%= render :partial => "electives", :locals => {:student => @student} %>
</div>
<% for semester in @semesters %>
	<% if semester.id == @current_semester_id %>
		<div id="current_semester" class="semester">
			<%= render :partial => "current_semester", :locals => { :semester => semester, :courses => (@student.courses_for_future_semester(semester).select { |e| (not e.sections.empty?) and (e.sections.select { |e| e.registered }.length >= 1) }), :hours => (@student.hours_in_future_semester(semester))} %>
	<% else %>
		<div class="semester">
		<%= render :partial => "semester", :locals => { :semester => semester, :courses => (@student.courses_for_future_semester(semester)), :hours => (@student.hours_in_future_semester(semester))} %>
	<% end %>
	</div>
<% end %>